<%@page import="java.sql.Timestamp"%>
<%@page import="cz.acies.genea.data.persist.GedPerson"%>
<%@page import="org.apache.commons.lang3.time.DateFormatUtils"%>
<%@page import="cz.acies.genea.data.dao.GedPersonDAO"%>
<%@page import="com.google.gson.Gson"%>
<%@page import="cz.acies.data.persist.TreeNode"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String theme = "metro";

Gson gson = new Gson();
String data = "";
try {
	/*
	GedPersonDAO dao = new GedPersonDAO();
	List<GedPerson> records = dao.selectAll();
	List<Map<String, String>> list = new ArrayList<Map<String, String>>();
	for (GedPerson record : records) {
		Map<String, String> row = new LinkedHashMap<String, String>();
		row.put("id", "" + record.getId());
		row.put("displayName", "" + record.getDisplayName());
		String dt = DateFormatUtils.format(record.hasBirthDate() ? record.getBirthDate() : Timestamp.valueOf("2099-01-01 00:00:00"), "dd.MM.yyyy");
		dt = (dt.equals("01.01.2099")) ? "" : dt;
		row.put("birthday", "" + dt);
		//System.out.println(row);
		list.add(row);
	}
	data = "" + gson.toJsonTree(list);
	//System.out.println(""+data);
	*/
} catch (Exception exc) {
	exc.printStackTrace();
}
%>
<!DOCTYPE html">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<link rel="stylesheet" type="text/css" href="<%=path%>/libs/themes/<%=theme%>/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=path%>/libs/themes/icon.css">
<style type="text/css">
body {
	font-family: sans-serif, Helvetica, Verdana;
	font-size: 11px;
	margin: 0px;
}

label { /*font-family: sans-serif, Helvetica, Verdana;*/
	font-size: 11px;
}
</style>
<script type="text/javascript" src="<%=path%>/libs/jquery-1.9.1.js"></script>
<script type="text/javascript" src="<%=path%>/libs/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=path%>/libs/aciea.utils.js"></script>
<script type="text/javascript">
$(document.body).ready(function() {});
</script>
</head>
<body>
	projectId: ${param["projectId"]}
</body>
</html>
